function check() {
	var userName = document.getElementById("user.userName");
	var password = document.getElementById("user.password");
	if(userName == null) {
		alert("用户名不能为空");
		return false;
	}
	if(password == null) {
		alert("密码不能为空");
		return false;
	}
}